\CUSProvideExplModule{pdfmana}{\cus@d@te}{\cus@versi@n}{special for pdfmanagement}
\tl_const:Nn \c__cus_pdfmana_patch_tl 
  {
    \cs_set_protected_nopar:Npn \transparent #1 { }
    \cs_set_protected_nopar:Npn \texttransparent #1#2 
      { \mode_leave_vertical: \group_begin: #2 \group_end: }
  }
\bool_lazy_and:nnTF
  { \cs_if_exist_p:N \pdfmanagement_if_active_p: } 
  { \pdfmanagement_if_active_p: } 
  { \cs_gset_eq:NN \CusIfPdfmana \use_i:nn }
  { 
    \cs_gset_eq:NN \CusIfPdfmana \use_ii:nn 
    \c__cus_pdfmana_patch_tl 
    \file_input_stop: 
  }
\CUSDependency{disable={transparent},package={l3opacity}}

\NewDocumentCommand \transparent { m }
  { \opacity_select:n { \fp_eval:n{ min(max(0,#1),1) } } }

\NewDocumentCommand \texttransparent { m m }
  {
    \mode_leave_vertical:
    \group_begin:
      \transparent{#1}
      #2
    \group_end:
  }

\cus_pkg_code:nnn { xcolor } { }
  {
    \cs_set_eq:NN \cus_color_select:n \color_select:n
    \cs_set_eq:NN \cus_color_select:nn \color_select:nn
    % \cs_set_eq:NN \cus_color_set:nn \color_set:nn
    % \cs_set_eq:NN \cus_color_set:nnn \color_set:nnn
    \cs_set_protected:Npn \cus_color_set:nn { \colorlet }
    \cs_set_protected:Npn \cus_color_set:nnn { \definecolor }
  }
\cus_pkg_code:nnn { hyperref } { }
  {
    \cs_set_nopar:Npn \cus@colorfile { \cus_color_select:n { hyp/color/file } }
    \cs_set_nopar:Npn \cus@colorlink { \cus_color_select:n { hyp/color/link } }
    \cs_set_nopar:Npn \cus@colorcite { \cus_color_select:n { hyp/color/cite } }
    \cs_set_nopar:Npn \cus@colorurl { \cus_color_select:n { hyp/color/url } }
    \cs_set_nopar:Npn \cus@colorrun { \cus_color_select:n { hyp/color/run } }
    \cs_set_nopar:Npn \cus@colormenu { \cus_color_select:n { hyp/color/menu } }
  }

\keys_define:nn { cus/typo }
  {
    dischyph-opacity .code:n  = {
      \tl_set:Nx \l__cus_tmpa_tl { \fp_min:nn { 1 } { \fp_max:nn {#1} { 0 } } }
      \reverse_if:N \if_dim:w \l__cus_tmpa_tl \p@ = \p@ 
        \tl_set:Nx \l__cus_hyphen_color_tl 
          { \transparent { \l__cus_tmpa_tl } }
      \fi:
    } ,
    dischyph-opacity .initial:n = 0.4 ,
  }